<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>乐淘首页</title>
		<link rel="stylesheet" href="assets/mui/css/mui.min.css" />
		<link rel="stylesheet" href="css/common.css" />
		<link rel="stylesheet" href="assets/font-awesome-4.5.0/css/font-awesome.min.css" />	
		<link rel="stylesheet" href="css/searchlist.css">
	</head>
	<body>
		<div class="container">
			<div class="lt_topnav">
				<a class="btn_left" href="javascript:;history.back()"><span class="fa fa-arrow-left"></span></a>				
				<h3>搜索中心</h3>
			</div>
			<div class="lt_content">
                    <div class="lt_wrapper">
						<div class="mui-scroll-wrapper">
							<div class="mui-scroll">
								 <!-- 搜索框 -->
								<div class="li_search">
									<form action="">
										<input type="search" class="search_input" name="" placeholder="请输入搜索内容">
										<a href="javascript:;" class="search_btn">搜索</a>
									</form>
								</div>
								<div class="lt_order">
									<a href="javascript:;">上架时间<span class="fa fa-angle-down"></span></a>
									<a href="javascript:;" data-type="price">价格<span class="fa fa-angle-down"></span></a>
									<a href="javascript:;" data-type="num">库存<span class="fa fa-angle-down"></span></a>
									<a href="javascript:;">折扣<span class="fa fa-angle-down"></span></a>
								</div>
								<div class="lt_product mui-clearfix">
									<div class="loading">
										<span class="mui-icon mui-spinner"></span>
									</div>
									<!-- 动态渲染 -->
								</div>
							</div>
						</div>
                    </div>
            </div>
			<div class="lt_tabnav">
				<ul>
					<li><a href="index.html"><span class="fa fa-home"></span><p>首页</p></a></li>
	                <li><a href="category.html"><span class="fa fa-bars"></span><p>分类</p></a></li>
	                <li><a href="user/cart.html"><span class="fa fa-shopping-cart"></span><p>购物车</p></a></li>
	                <li><a href="user/index.html"><span class="fa fa-user"></span><p>会员中心</p></a></li>
				</ul>
			</div>
		</div>
		<script type="text/template" id="product">
			<% for(var i = 0; i < data.length; i++){%>
			<a href="product.html?productId=<%=data[i].id%>">
				<% var pic = data[i].pic,src = '';
					if(pic && pic.length != 0){
						src = pic[0].picAddr
					}
				%>
				<img src="<%=src%>" alt="" onerro="this.src='images/none.jpg'"/>
				<span class="mui-ellipsis-2 mui-text-left"><%=data[i].proName%></span>
				<p><span>&yen;<%=data[i].price%></span>&emsp;<span>&yen;<%=data[i].oldPrice%></span></p>
				<button class="mui-btn-blue">立即购买</button>
			</a>
			<% }%>
		</script>
		<script src="assets/mui/js/mui.min.js"></script>
		<script src="js/common.js"></script>
		<script src="assets/zepto/zepto.min.js"></script>
		<script src="assets/artTemplate/template-native.js"></script>
		<script src="js/searchlist.js"></script>
	</body>
</html>
